<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h1>{{msg}}</h1>
        <com1 />
    </div>
    <template id="com1">
        <div>
            {{msg}}
            <button>点击</button>
            <ul>
                <li>aaa</li>
            </ul>
        </div>
    </template>
    <script src="./js/vue.js"></script>
    <script>
        Vue.component("com1", {
            data() {
                return {
                    msg: "com1",
                }
            },
            template: "#com1",
            methods: {}
        })
        let vm = new Vue({
            el: '#app',
            data: {
                msg: "Hello Vue"
            },
            methods: {}
        });
    </script>
</body>

</html>